;
(function() {
	module.exports = {
		prefix: "/bus/employees",
		get: {
			"/list": function() {
				var bus = role.getBus(this);
				this.body = ResponObj("json", bus.getEmployeesList());
			},
		},
		post: {
			"/add_employees": function() {
				var bus = role.getBus(this);
				var body = this.request.body;
				this.body = ResponObj("json", bus.addEmployees(body));
			},
		},
		put: {
			"/update_employees/:employees_id": function() {
				var bus = role.getBus(this);
				var body = this.request.body;
				var employees_id = this.params.employees_id;
				this.body = ResponObj("json", bus.updateEmployees(employees_id, body));
			}
		},
		"delete": {
			"/remove_employees/:employees_id": function() {
				var bus = role.getBus(this);
				var body = this.request.body;
				var employees_id = this.params.employees_id;
				bus.removeEmployees(employees_id, body)
				this.body = ResponObj("string", "删除成功");
			}
		}
	}
	var role = require("./role");
	var BusCon = require("../../core/bus/_con");
	var UserCon = require("../../core/user/_con");
	var GoodsCon = require("../../core/goods/_con");
	var AchCon = require("../../core/ach/_con");
	var db = require("../../core/db/index");
	var config = require("../../core/_include/config");
	var ResponObj = require("../_include/responObj");
}());